package com.yorge.config;

import org.springframework.context.annotation.Configuration;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;

@Configuration
public class FeignConfig {
    // 添加日志打印功能，级别为FULL
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

    @Bean
    IRule myRule() {
        return new RoundRobinRule();
    }
}
